import Vue from 'vue'
export default {
	namespaced: true,

	state: {
		payGoods: {},
		payGoodsList: [],
		cartList: [],
	},
	mutations: {
		SET_CARTLIST(state, list) {
			state.cartList = list;
		},
		//  设置支付商品
		SET_PAYGOODS(state, goods) {
			state.payGoodsList = goods
			// Vue.set(state.payGoodsList,goods)
		},
		
		CLEAR_GOODS(state) {
			state.payGoodsList = []
		},
		CLEAR(state){
			state.cartList = [];
			state.payGoodsList = [];
			state.payGoods = {};
		},
	},
	actions: {

	}
}